package IO;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2023-07-26
 * Time: 16:55
 */
public class IODemo5 {
    public static void main(String[] args) {
        //重命名
        File src = new File("./学习内容.txt");
        File dest = new File("./学习内.txt");
        src.renameTo(dest);//将学习内容.txt名字改为学习内.txt
    }
}

















